﻿using Microsoft.EntityFrameworkCore;
using WebAppTemplate.CSR.Repository.Entities;

namespace WebAppTemplate.CSR.Repository.DbContexts
{
    public class AppQueryContext
    {
        private readonly AppDbContext _dbContext;
        public AppQueryContext(AppDbContext dbContext) => _dbContext = dbContext;

        public IQueryable<Demo> Demo => _dbContext.Demo.AsNoTracking();
        public IQueryable<DemoOneWithOne> DemoOneWithOne => _dbContext.DemoOneWithOne.AsNoTracking();
        public IQueryable<DemoOneWithMore> DemoOneWithMore => _dbContext.DemoOneWithMore.AsNoTracking();
        public IQueryable<DemoMoreWithMore> DemoMoreWhitMore => _dbContext.DemoMoreWithMore.AsNoTracking();
       
    }
}
